<!DOCTYPE html>
<html>
    <!-- HEADER -->
    {{include file='../frontend/page/header.tpl'}}
    <!-- END HEADER -->
    <body>
        <div align="center">
            <div class="bannerSite">
                <div class="bannerMain" align="left">
                    <div class="logodiv" style="float:left;"><img src="{{'layout/template/frontend/images/logo.png'|base_url}}"></div>
                    <div style="float:right; margin-top:10px; margin-right:3px;"><a href="#" target="_blank"><img src="{{'layout/template/frontend/images/banner-top.png'|base_url}}"></a></div>
                </div>
            </div>
            <div class="bgmenu" align="center">
                <div class="menuContain" align="left">
                    <div class="homeIcon"></div>
                    <ul id="nav">
                        <li>
                            <a href="#">
                                <div class="menu" style="width: 100px;">Trang Chủ</div>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <div style="" class="menu">Nạp tiền</div>
                            </a>
                            <ul style="visibility: hidden; display: block;">
                                <li><a href="#">&nbsp;Nạp tiền</a></li>
                                <li><a href="#">&nbsp;Rút tiền</a></li>
                                <li><a href="#">&nbsp;Chuyển tiền</a></li>
                            </ul>
                        </li>
                        <li>
                            <a href="#">
                                <div class="menuthis" style="background-image:url({{'layout/template/frontend/images/bgmenu_og.png'|base_url}});">Mua thẻ</div>
                            </a>
                            <ul style="visibility: hidden; display: block;">
                                <li><a href="#">&nbsp;Nạp Zing Xu</a></li>
                                <li><a href="#">&nbsp;Nạp Bạc Gate FPT</a></li>
                                <li><a href="#">&nbsp;Mã thẻ cào</a></li>
                                <li><a href="#">&nbsp;Topup điện thoại</a></li>
                            </ul>
                        </li>
                        <li>
                            <a href="#">
                                <div class="menu" style="width: 130px;">Sàn giao dịch</div>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <div class="menu">Diễn Đàn</div>
                            </a>
                        </li>
                        <li>
                            <a href="#">
                                <div class="menu">Lịch sử</div>
                            </a>
                            <ul>
                                <li><a href="#">&nbsp;Lịch sử </a></li>
                                <li><a href="#">&nbsp;Tra cứu thẻ nạp</a></li>
                                <li><a href="#">&nbsp;Tra cứu sản lượng</a></li>
                            </ul>
                        </li>
                        <li>
                            <a href="#">
                                <div class="menu" style="border-right-width: 0px;">Tài khoản</div>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
            <div style="width:950px; height:19px; margin:0px; float:none; border-color:#F60; border-width:0px; border-style:solid; font-size:11px; text-align:left;">
                <div style="margin:1px;height:17px;">
                    <div style="margin-right:1px; width:100px; padding:1px; padding-right:3px; padding-left:3px; float:left"></div>
                    <a href="#">
                        <div style="color: rgb(57, 104, 215);" class="submenu">Nạp Zing Xu</div>
                    </a>
                    <a href="#">
                        <div style="color: rgb(57, 104, 215);" class="submenu">Mã thẻ cào</div>
                    </a>
                </div>
            </div>
            <div style="width:950px; height:auto; margin-top:0px; float:none;">
                <div style="width:215px; height:540px; float:left;">
                    {{if isset($user_info)}}
                        <div id="loginContainer"><div id="loginformTop">
                                <div class="textformTop">Tài khoản</div>
                            </div>
                            <div class="loginformContain">
                                <div id="logedShowname">{{$user_info[0]->showname}}<span style="color:#F30;"></span></div>
                                <div class="text11tahoma" style="padding-top:5px; color:#666;" align="center">
                                    <table width="195px" height="70px" border="0">
                                        <tbody><tr>
                                                <td width="78">Tổng số tiền:</td>
                                                <td width="80" align="right"><span style="color:#060;font-weight:bold">{{$user_info[0]->coin}}</span></td>
                                                <td width="23" align="right">VNĐ</td>
                                            </tr>
                                            <tr>
                                                <td>Có thể sử dụng:</td>
                                                <td align="right"><span style="color:#03C;font-weight:bold">{{$user_info[0]->coinavailable}}</span></td>
                                                <td align="right">VNĐ</td>
                                            </tr>
                                            <tr>
                                                <td>Chờ giao dịch:</td>
                                                <td align="right"><span style="color:#F30;font-weight:bold">{{$user_info[0]->coinpending}}</span></td>
                                                <td align="right">VNĐ</td>
                                            </tr>
                                        </tbody></table>
                                    <div style="border-style:solid; border-color:#999; width:180px; border-width:1px; border-bottom:0;"></div>
                                </div>
                                <div class="text11tahoma" style="padding-top:7px;" align="left">
                                    <div class="litxtbtomlogin"><img src="{{'layout/template/frontend/images/li.gif'|base_url}}">&nbsp;&nbsp;<a href="http://id.gamebank.vn"><span id="changePass">Đổi mật khẩu</span></a></div>
                                    <div class="litxtbtomlogin"><img src="{{'layout/template/frontend/images/li.gif'|base_url}}">&nbsp;&nbsp;<a href="http://id.gamebank.vn"><span id="infoAcc">Thông tin tài khoản</span></a></div>
                                    <div class="litxtbtomlogin"><img src="{{'layout/template/frontend/images/li.gif'|base_url}}">&nbsp;&nbsp;<a href="{{'home/logout'|base_url}}"><span id="logout">Thoát</span></a></div>
                                </div>
                            </div></div>
                        {{else}}
                        <div id="loginContainer">
                            <div id="loginformTop">
                                <div class="textformTop">
                                    Đăng nhập
                                </div>
                                <div id="Loginloading" class="loading" style="top:15px;"><img id="imgloading" src="{{'layout/template/frontend/images/ajax_load.gif'|base_url}}"></div>
                            </div>
                            <div id="LoginContainFrm" class="loginformContain">
                                <form name="loginFrm" id="loginFrm" method="post" action="{{base_url()}}" target="iframe-temp">
                                    <div id="pageContent" align="center">Chưa có tài khoản ? <a href="#" target="_blank"> <span style="color:#F30;">Đăng ký ngay</span></a></div>
                                    <div class="text11tahoma" style="padding-top:10px;" align="left">&nbsp;&nbsp;Sử dụng mật khẩu cấp 1 Gamebank</div>
                                    <div style="padding-top:10px;" align="center">
                                        <input name="username" id="uname-login" size="25" value="&nbsp;Username" style="width:170px; height:20px; border-width:1px; border-style:solid; border-color:#999; background-color:#FFF;" type="text">
                                    </div>
                                    <div style="padding-top:10px;" align="center">
                                        <input name="password" id="pword-login" value="&nbsp;password" style="width:170px; height:20px; border-width:1px; border-style:solid; border-color:#999; background-color:#FFF;" type="password">
                                    </div>
                                    <div style="padding-top:10px;" align="center"><input name="sbm" value="1" type="hidden">
                                        <input src="{{'layout/template/frontend/images/DangnhapButton.png'|base_url}}" name="dangnhapbutton" id="dangnhapbutton" value="Đăng Nhập" type="image">
                                    </div>
                                    <div class="text11tahoma" style="padding-top:7px;" align="left">&nbsp;&nbsp;<a href="#" target="_blank">Quên tên đăng nhập ?</a> <a href="#" target="_blank">Quên mật khẩu</a></div>
                                </form>
                            </div>
                        </div>
                    {{/if}}
                    <div id="loginformTop" style="margin-top:15px;">
                        <div class="textformTop">
                            Liên hệ - Hỗ trợ
                        </div>
                    </div>
                    <div class="loginformContain" style="height:200px;" align="center">
                        <div style="margin-top:7px; height:25px;">
                            <div style="float:left;margin-left:5px; background-color:#CCC;">
                                <a href="ymsgr:sendIM?gamebankvn">
                                    <div id="yahooOnline"></div>
                                </a>
                            </div>
                        </div>
                        <div class="divhr" style="width:200px;"></div>
                        <div style="margin:5px 0px 5px 0px;">
                            <!--Live Support Code-->
                            <div id="ls"><a href="#"><img src="{{'layout/template/frontend/images/Online3.png'|base_url}}"></a></div>
                            <script language="javascript" type="text/javascript">
                                var imgOnline = "http://gamebank.vn/livesupport/images/Online3.png";
                                var imgOffline = "http://gamebank.vn/livesupport/images/Offline3.png";
                                var linkLS = "javascript:void(window.open('http://gamebank.vn/livesupport/chat.php?code=U0VSVkVSUEFHRQ__','','width=590,height=610,left=0,top=0,resizable=yes,menubar=no,location=yes,status=yes,scrollbars=yes'))";
                            
                                var d = new Date();
                            
                                var curr_hour = d.getHours();
                                var curr_min = d.getMinutes();
                                var source = document.getElementById("ls");
                            
                                if ((curr_hour >= 8 && curr_hour < 17) || (curr_hour == 17 && curr_min <= 30))	
                                {		
                                    source.innerHTML = "<a href=\"" + linkLS + "\"><img src='" + imgOnline +"'/></a>";		
                                }
                                else 
                                    source.innerHTML = "<img src='" + imgOffline +"'/>";		
                            
                            </script>
                            <!-- End Live Support-->
                        </div>
                        <div class="divhr" style="width:200px;"></div>
                        <div class="text11tahoma" align="left">
                            <div style="margin-top:7px; height:17px;">
                                <div style="float:left; margin-left:5px;">Trụ sở tại <strong>Hà Nội</strong>:</div>
                                <div style="float:right; margin-right:5px;"><a href="#" title="Bản đồ trụ sở Gamebank tại TPHCM" target="_blank">Bản đồ</a></div>
                            </div>
                            <div style="margin-left:20px;height:17px;">
                                <div class="homeMini"></div>
                                <div>&nbsp;Số 11 - Đồng Bông - Cầu Giấy</div>
                            </div>
                            <div class="mobiIcon"></div>
                            <div style="height:17px; float:left;">04-3.939.3464</div>
                            <div style="margin:0px 5px 0px 5px; float:right;">0966.915.905</div>
                        </div>
                        <div class="text11tahoma" align="left">
                            <div style="margin-top:25px; height:17px;">
                                <div style="float:left; margin-left:5px;">Trụ sở tại <strong>TPHCM</strong>:</div>
                                <div style="float:right; margin-right:5px;"><a href="#" title="Bản đồ trụ sở Gamebank tại TPHCM" target="_blank">Bản đồ</a></div>
                            </div>
                            <div style="margin-left:20px;height:17px;">
                                <div class="homeMini"></div>
                                <div> 41/4 Ngô Quyền - P6 - Q10</div>
                            </div>
                            <div class="mobiIcon"></div>
                            <div style="height:17px; float:left;">08-3.853.3456</div>
                            <div style="margin:0px 5px 0px 5px; float:right;">0966.915.904</div>
                        </div>
                    </div>
                    <div style="padding-top:15px">
                        <div style="height:auto;padding:0" align="center"><a href="#" title="Hướng dẫn dịch vụ Gamebank"> <img src="{{'layout/template/frontend/images/Huongdan.png'|base_url}}" alt="Hướng dẫn dịch vụ Gamebank"></a></div>
                    </div>
                </div>
                {{if isset($content)}}
                    {{$content}}
                {{/if}}
            </div>
        </div>
            
        <!-- FOOTER -->
        {{include file='../frontend/page/footer.tpl'}}
        <!-- END FOOTER -->
        <iframe name="iframe-temp" style	= "
                position:absolute;
                width:	0;
                height:	0;
                border: none;
                padding: 0;
                margin: 0
                "></iframe>
    </body>
</html>